//
//  LZ_MainTableViewCell.h
//  LzzizDemo
//
//  Created by xbnzd on 16/10/25.
//  Copyright © 2016年 xbnzd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LZVideoCellDelegate.h"
#import "LZMyRecordsENUM.h"
#import "LZVideoListModel.h"
@class XBNTimeLimitCountDownCalculator;

@protocol LZ_MainTableViewCellDelegate <NSObject>

/**
 *  @author Zhoudan, 16-10-27 15:10:24
 *
 *  点击封面图.播放视频
 *
 *  
 */
- (void)playVideoWhenClickVideoCoverImgWithIndex:(NSIndexPath *)cellIndexPath;



@end

@interface LZVideoTableViewCell : UITableViewCell
@property (nonatomic, strong) UIView      *playerBgView;
@property (nonatomic, weak) id<LZ_MainTableViewCellDelegate>mainDelegate;
@property (nonatomic ,weak) id<LZVideoCellDelegate> cellClickDelegate;
@property (strong, nonatomic) XBNTimeLimitCountDownCalculator *timeCountDownCalculator;
@property (nonatomic ,assign) MyRecordsType vcType;   // 列表类型
@property (nonatomic, strong) LZVideoListModel *model;

@property (nonatomic ,copy) void (^removeCellBlock)(NSIndexPath *indexPath,LZVideoListModel *model);


/**
  参数赋值

 @param index <#index description#>
 @param showHead <#showHead description#>
 @param showCellBtns <#showCellBtns description#>
 */
- (void)loadDataWithIndex:(NSIndexPath *)index WithShowHeadView:(BOOL)showHead showCellBtns:(BOOL)showCellBtns showCouponAndGroupsView:(BOOL)showcouponView;


/**
 开启倒计时
 */
- (void)startTimeDown;

- (UILabel *)getViewsCountLabel;

/*
+ (CGFloat)getCellHeightWithModel:(LZVideoListModel *)m withShowHeadView:(BOOL)showHead showCellBtns:(BOOL)showCellBtns showCouponAndGroupsView:(BOOL)showcouponView;
*/


@end
